﻿<Window x:Class="QLHH_HD.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Quản lý hàng hóa" Height="350" Width="700" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ToolBarTray  Grid.Row="0"  >
            <ToolBar Band="1" BandIndex="1">
                <Button  Name="mnNew" ToolTip="New" Click="mnNew_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="Images/Images/NewDocumentHS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Thêm Mới</TextBlock>
                    </StackPanel>
                </Button>
                <Button  Name="mnChange" ToolTip="Sua">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="Images/Images/EditTableHS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Sửa</TextBlock>
                    </StackPanel>
                </Button>
                <Button  Name="mnDelete" ToolTip="Delete" Click="mnDelete_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="Images/Images/DeleteHS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Xóa</TextBlock>
                    </StackPanel>
                </Button>
                <Separator/>
                <Button  Name="mnSearch" ToolTip="Search">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="Images/Images/Find_VS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Tìm kiếm</TextBlock>
                    </StackPanel>
                </Button>
                <Button  Name="mnPrint" ToolTip="Print">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="Images/Images/PrintHS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Print</TextBlock>
                    </StackPanel>
                </Button>
                <Separator/>
                <Button  Name="mnClose" ToolTip="Close" Click="mnClose_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="Images/Images/StopHS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Thoát</TextBlock>
                    </StackPanel>
                </Button>
            </ToolBar>
        </ToolBarTray>
        <DataGrid Name="datagrid" Grid.Row="1" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Số hóa đơn" Width="100" Binding="{Binding sohd}"></DataGridTextColumn>
                <DataGridTextColumn Header="Tên hàng" Width="100" Binding="{Binding tenhang}"></DataGridTextColumn>
                <DataGridTextColumn Header="Số lượng" Width="100" Binding="{Binding soluong}"></DataGridTextColumn>
                <DataGridTextColumn Header="Đơn giá" Width="100" Binding="{Binding dongia}"></DataGridTextColumn>
                <DataGridTextColumn Header="Trị giá" Width="100" Binding="{Binding trigia}"></DataGridTextColumn>
                <DataGridTextColumn Header="Khuyên mãi" Width="100" Binding="{Binding khuyenmai}"></DataGridTextColumn>
                <DataGridTextColumn Header="Diễn giải" Width="100" Binding="{Binding diengiai}"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <StatusBar Grid.Row="2">
            <StatusBarItem Content="Tổng số hóa đơn:"/>
        </StatusBar>
        
    </Grid>
</Window>